package cn.thornbird.orgsync.model.certificate;

import lombok.Data;

@Data
public class NeteaseCertificate extends AppCertificate {

    public NeteaseCertificate() {
        super();
    }

    public NeteaseCertificate(String domain, String appId, String authCode, String orgOpenId) {
        super();
        this.setDomain(domain);
        this.setAppId(appId);
        this.setAuthCode(authCode);
        this.setOrgOpenId(orgOpenId);
    }

    @Override
    protected void addFields() {
        fields.add("domain");
        fields.add("appId");
        fields.add("authCode");
        fields.add("orgOpenId");
    }

    /** 域名 */
    private String domain;

    /** 应用ID */
    private String appId;

    /** 应用授权码 */
    private String authCode;

    /** 企业OpenId */
    private String orgOpenId;

}
